


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link rel="stylesheet" type="text/css" href="css/kuesioner.css" />
        <link rel="stylesheet" type="text/css" href="css/humanity/jquery-ui-1.8.17.custom.css" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Sistem Evaluasi Layanan Kelas Virtual</title>
    </head>
    <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            function button_lanjut(event){
                //$('#mainContent').load('KueGuru-1.html form[name="formguru1"]');
                //$.post('control_guru.php',$('form').serialize(),function(){
                
                var x = $('input[name="halaman"]').val();
                switch(x){
                    case '1':
                        $.post('control_guru.php',$('form').serialize()+'&command=new');
                        $('body').load('KueGuru-1.html', function(){
                            $('#Lanjut').click(button_lanjut);
                        });
                        break;
                    case '2':
                        $.post('control_guru.php',$('form').serialize()+'&command=submit');
                        $('body').load('KueGuru-2.html', function(){
                            $('#Lanjut').click(button_lanjut);
                        });
                        break;
                    case '3':
                        $.post('control_guru.php',$('form').serialize()+'&command=submit');
                        $('body').load('KueGuru-3.html', function() {
                            $('#Lanjut').click(button_lanjut);
                        });
                        break;
                    case '4':
                        $.post('control_guru.php',$('form').serialize()+'&command=submit');
                        $('body').load('KueGuru-4.html', function() {
                            $('#Lanjut').click(button_lanjut);
                        });
                        break;
                    case '5':
                        $.post('control_guru.php', "command=finish&"+$('form').serialize());
                        
                        $("#dialog-finish").dialog({
                            modal:true,
                            buttons:{
                                OK : function(){
                                    $(this).dialog("close");
                                    self.location="index.php";
                                }
                            }
                        });
                        
                        break;
                    case '6':
                        $.post('control_murid.php',$('form').serialize()+'&command=new');
                        $('body').load('Kuemurid-1.html', function() {
                            $('#Lanjut').click(button_lanjut);
                        });
                        break;
                    case '7':
                        $.post('control_murid.php',$('form').serialize()+'&command=submit');
                        $('body').load('Kuemurid-2.html', function() {
                            $('#Lanjut').click(button_lanjut);
                        });
                        break;
                    case '8':
                        $.post('control_murid.php',$('form').serialize()+'&command=submit');
                        $('body').load('Kuemurid-3.html', function() {
                            $('#Lanjut').click(button_lanjut);
                        });
                        break;
                    case '9':
                        $.post('control_murid.php',$('form').serialize()+'&command=submit');
                        $('body').load('Kuemurid-4.html', function() {
                            $('#Lanjut').click(button_lanjut);
                        });
                        break;
                    case '10':
                        $.post('control_murid.php', "command=finish&"+$('form').serialize());
                        
                        $("#dialog-finish").dialog({
                            modal:true,
                            buttons:{
                                OK : function(){
                                    $(this).dialog(close);
                                    self.location="index.php";
                                }
                            }
                        });
                        
                        break;
                    
					
                    /* case '0':
                $('body').load('KueGuru-1.html' ,{'type':'murid','s0' : '1'}, function(){
                    $('#Lanjut').click(button_lanjut);
                });
                break;*/
                default:
                    break;
            }
            //});

        }
        $('#guru').click(function(event){
            //ajax ke control_guru set tipe guru
            $('body').load('idenguru.html', function(){
                $('#Lanjut').click(button_lanjut);
            });
        });
        $('#murid').click(function(event){
            //ajax ke control_murid set tipe murid
            $('body').load('Idenmurid.html', function(){
                $('#Lanjut').click(button_lanjut);
            });
        })
  
    });
    </script>

    <body class="oneColLiqCtrHdr">
        <div id="container">
            <div id="header">
                <h1>Sistem Evaluasi Layanan Kelas Virtual</h1>
                <!-- end #header --></div>
            <div id="mainContent">
                <h3 align="center">SILAHKAN PILIH PERAN ANDA</h3>
                <p align="center">&nbsp;</p>
                <p align="center"><a id="guru" ><img src="teacher_icon.jpg" width="256" height="256" alt="guru" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a id="murid" ><img src="student_icon.jpg" width="256" height="256" alt="murid" /></a></p>
                <p align="center">&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p align="right"><a href="analisis.php">Admin</a></p>
                <p>

                    <!-- end #mainContent -->
                </p>
            </div>
            <div id="footer">
                <p>Copyright Darryl 2012</p>
                <!-- end #footer --></div>
            <!-- end #container --></div>
    </body>

</html>
